package com.xszx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xszx.entity.RoleMenu;
import com.xszx.service.RoleMenuService;
import com.xszx.mapper.RoleMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 34129
* @description 针对表【role_menu】的数据库操作Service实现
* @createDate 2024-01-08 20:40:47
*/
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu>
    implements RoleMenuService{

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public List<RoleMenu> selectRoleMenu(Long rid) {
        return roleMenuMapper.selectRoleMenu(rid);
    }

    @Override
    public int deleteRoleMenu(long mid) {
        return roleMenuMapper.deleteRoleMenu(mid);
    }

    @Override
    public int insertRoleMenu(long rid, long mid) {
        return roleMenuMapper.insertRoleMenu(rid,mid);
    }
}




